﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Common.Event.NCL
{
    /// <summary>
    /// network control logic event
    /// 基于网络的控制逻辑事件
    /// </summary>
    public abstract class NCLEvent
    {
        /// <summary>
        /// [common]
        /// 状态
        /// </summary>
        public NCLEventState State { get; set; }

        /// <summary>
        /// [common]
        /// 错误信息，当state等于Failure时，可以从这里获取错误信息
        /// </summary>
        public Exception Error { get; set; }

        public NCLEvent(NCLEventState state)
        {
            State = state;
        }
    }
}
